package blog.entity;

import lombok.Data;

import java.util.List;

@Data
public class WangEditorResultJson {
    private int errno;
    private List<String> data;

    public static WangEditorResultJson isSuccess(List<String> data){
        return new WangEditorResultJson().setErrno(0).setData(data);
    }
    public static WangEditorResultJson isFail(){
        return new WangEditorResultJson().setErrno(1);
    }
}
